package chapter05;

public class Cylinder {
    private double length;
    private Circle base;

   private Cylinder(){
       length = 1;
       base = new Circle();

   }
   public void setLength(double length){
       this.length = length;
   }
   public double getLength(){
       return length;
   }
   public double findvolume(){
       return base.findArea() * length;
   }
}

